(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    ["pages/main/sales/audit"], {
        "07b8": function (e, t, n) {
            "use strict";
            n.r(t);
            var a = n("cb70"),
                o = n("ff03");
            for (var i in o)["default"].indexOf(i) < 0 && function (e) {
                n.d(t, e, (function () {
                    return o[e]
                }))
            }(i);
            n("735d");
            var s = n("f0c5"),
                r = Object(s["a"])(o["default"], a["b"], a["c"], !1, null, "6bf90195", null, !1, a["a"], void 0);
            t["default"] = r.exports
        },
        "735d": function (e, t, n) {
            "use strict";
            var a = n("ceea"),
                o = n.n(a);
            o.a
        },
        "85eb": function (e, t, n) {
            "use strict";
            (function (e, t) {
                var a = n("4ea4");
                n("c150"), n("5c17"), n("a9ff");
                a(n("66fd"));
                var o = a(n("07b8"));
                e.__webpack_require_UNI_MP_PLUGIN__ = n, t(o.default)
            }).call(this, n("bc2e")["default"], n("543d")["createPage"])
        },
        cb70: function (e, t, n) {
            "use strict";
            n.d(t, "b", (function () {
                return o
            })), n.d(t, "c", (function () {
                return i
            })), n.d(t, "a", (function () {
                return a
            }));
            var a = {
                    uniSegmentedControl: function () {
                        return n.e("components/uni-segmented-control/uni-segmented-control").then(n.bind(null, "aaf7"))
                    },
                    uniForms: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-forms/uni-forms")]).then(n.bind(null, "0933"))
                    },
                    uniFormsItem: function () {
                        return n.e("components/uni-forms-item/uni-forms-item").then(n.bind(null, "4828"))
                    },
                    uniEasyinput: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-easyinput/uni-easyinput")]).then(n.bind(null, "5dad"))
                    },
                    uniSwipeAction: function () {
                        return n.e("components/uni-swipe-action/uni-swipe-action").then(n.bind(null, "e7b4"))
                    },
                    uniSwipeActionItem: function () {
                        return Promise.all([n.e("common/vendor"), n.e("components/uni-swipe-action-item/uni-swipe-action-item")]).then(n.bind(null, "c498"))
                    },
                    uniTag: function () {
                        return n.e("components/uni-tag/uni-tag").then(n.bind(null, "7fdd"))
                    },
                    uniLoadMore: function () {
                        return n.e("components/uni-load-more/uni-load-more").then(n.bind(null, "16c3"))
                    }
                },
                o = function () {
                    var e = this.$createElement;
                    this._self._c
                },
                i = []
        },
        ceea: function (e, t, n) {},
        e788: function (e, t, n) {
            "use strict";
            (function (e) {
                var a = n("4ea4");
                Object.defineProperty(t, "__esModule", {
                    value: !0
                }), t.default = void 0;
                var o = a(n("2eee")),
                    i = a(n("c973")),
                    s = {
                        data: function () {
                            return {
                                model: {
                                    xsname: ""
                                },
                                url: getApp().globalData.apiurl,
                                state: 1,
                                current: 0,
                                items: ["已通过", "待处理", "已驳回"],
                                loadingType: "more",
                                totalCount: 0,
                                totalPages: 0,
                                pageSize: 10,
                                pageIndex: 1,
                                listData: []
                            }
                        },
                        methods: {
                            loadData: function () {
                                var e = arguments,
                                    t = this;
                                return (0, i.default)(o.default.mark((function n() {
                                    return o.default.wrap((function (n) {
                                        while (1) switch (n.prev = n.next) {
                                            case 0:
                                                e.length > 0 && void 0 !== e[0] ? e[0] : "add", e.length > 1 ? e[1] : void 0, t;
                                            case 3:
                                            case "end":
                                                return n.stop()
                                        }
                                    }), n)
                                })))()
                            },
                            onClickItem: function (t) {
                                var n = this;
                                this.current != t.currentIndex && (this.current = t.currentIndex);
                                var a = 0;
                                0 == t.currentIndex && (this.state = 1, a = 1), 1 == t.currentIndex && (this.state = 0, a = 0), 2 == t.currentIndex && (this.state = 2, a = 3), this.pageIndex = 1, this.loadingType = "", this.listData = [];
                                var o = [],
                                    i = (e.getStorageSync("key"), getApp().globalData.userinfo.roles[0].roleKey);
                                getApp().globalData.userinfo.userName;
                                e.request({
                                    url: this.url + "salesdocuments/salesdocuments/list",
                                    method: "GET",
                                    data: {
                                        state: a,
                                        createname: "审批查询",
                                        roles: i
                                    },
                                    success: function (e) {
                                        if (console.log(e.data.rows), null != n.model.xsname && void 0 != n.model.xsname && "" != n.model.xsname) {
                                            for (var t = 0; t < e.data.rows.length; t++) e.data.rows[t].createname == n.model.xsname && o.push(e.data.rows[t]);
                                            n.listData = o
                                        } else n.listData = e.data.rows
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                })
                            },
                            goDetail: function (t) {
                                console.log("状态", this.state);

                                0 == this.state ? e.navigateTo({
                                    url: "/pages/main/sales/detail?id=".concat(t)
                                }) : e.navigateTo({
                                    url: "/pages/main/sales/orderDetails?id=".concat(t)
                                })
                            },
                            submitForm: function () {
                                var t = this;
                                this.pageIndex = 1, this.loadingType = "";
                                var n = [],
                                    a = (e.getStorageSync("key"), getApp().globalData.userinfo.roles[0].roleKey),
                                    o = getApp().globalData.userinfo.nickName;
                                e.request({
                                    url: this.url + "salesdocuments/salesdocuments/list",
                                    method: "GET",
                                    data: {
                                        state: this.state,
                                        createname: o,
                                        roles: a
                                    },
                                    success: function (e) {
                                        if (null != t.model.xsname && void 0 != t.model.xsname && "" != t.model.xsname) {
                                            for (var a = 0; a < e.data.rows.length; a++) e.data.rows[a].createname == t.model.xsname && n.push(e.data.rows[a]);
                                            t.listData = n
                                        } else t.listData = e.data.rows
                                    },
                                    fail: function () {},
                                    complete: function () {}
                                })
                            }
                        },
                        onLoad: function (t) {
                            var n = this,
                                a = (e.getStorageSync("key"), getApp().globalData.userinfo.roles[0].roleKey);
                            getApp().globalData.userinfo.userName;
                            e.request({
                                url: this.url + "salesdocuments/salesdocuments/list",
                                method: "GET",
                                data: {
                                    state: 1,
                                    createname: "审批查询",
                                    roles: a
                                },
                                success: function (e) {
                                    n.listData = e.data.rows
                                },
                                fail: function () {},
                                complete: function () {}
                            })
                        },
                        onPullDownRefresh: function () {
                            this.loadData("refresh")
                        },
                        onReachBottom: function () {
                            this.loadData("add")
                        }
                    };
                t.default = s
            }).call(this, n("543d")["default"])
        },
        ff03: function (e, t, n) {
            "use strict";
            n.r(t);
            var a = n("e788"),
                o = n.n(a);
            for (var i in a)["default"].indexOf(i) < 0 && function (e) {
                n.d(t, e, (function () {
                    return a[e]
                }))
            }(i);
            t["default"] = o.a
        }
    },
    [
        ["85eb", "common/runtime", "common/vendor"]
    ]
]);